﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GrandwayLib.Meters.Classes
{
    /// <summary>
    /// 串口参数
    /// </summary>
    public class SerialPortParam
    {
        /// <summary>
        /// 无参构造器
        /// </summary>
        public SerialPortParam() { }

        /// <summary>
        /// 带两个参数的构造器
        /// </summary>
        /// <param name="portname">串口名</param>
        /// <param name="baudrate">波特率</param>
        public SerialPortParam(string portname,int baudrate)
        {
            Portname = portname;
            Baudrate = baudrate;
        }
        /// <summary>
        /// 串口名称
        /// </summary>
        public string Portname { set; get; }

        /// <summary>
        /// 波特率
        /// </summary>
        public int Baudrate { set; get; }
    }
}
